<?php

namespace app\controller;

class SystemOperatingLog
{
    public static function read(\app\model\SystemOperatingLog $model)
    {
        return $model->read();
    }

    public static function getCount(\app\model\SystemOperatingLog $model)
    {
        return $model->getCount();
    }

    public function search(\app\model\SystemOperatingLog $model)
    {
        $model->account = input('param.account');
        $model->startDate = input('param.start_time');
        $model->endDate = input('param.end_time');
        record_search_operating_log(
            input('param.start_time'),
            input('param.end_time'),
            input('param.account')
        );
        return $model->search();
    }
}